![]() |
Palette2CTab |
||||
Header: | Palettes.h | Carbon status: | Supported | |
Copies the colors of a palette into a color table.
void Palette2CTab ( PaletteHandle srcPalette, CTabHandle dstCTab );
A handle to the palette whose colors are to be used.
A handle to the color table to receive the colors.
The Palette2CTab function copies all of the colors from an existing palette structure into an existing color-table structure. If the structures are not the same size, then Palette2CTab resizes the color-table structure to match the number of entries in the palette structure. If either the palette handle or the color-table handle is NULL, Palette2CTab does nothing.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)